package com.moxi.study.hadoop;

import org.springframework.data.hadoop.fs.FsShell;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class HadoopStudyApplication implements CommandLineRunner{
	
	@Autowired FsShell shell;
	
	public static void main(String[] args) {
		SpringApplication.run(HadoopStudyApplication.class, args);
	}

	/* (non-Javadoc)
	 * @see org.springframework.boot.CommandLineRunner#run(java.lang.String[])
	 */
	@Override
	public void run(String... args) throws Exception {
		shell.lsr("/tmp");
		
	}
}
